"""
玩家：输入0、1、2表示剪刀、石头、布
电脑：随机产生一个数字表示
判断几种情况： 玩家赢、平局、电脑赢
"""

player = eval(input('请您猜拳：'))

import random;

computer = random.randint(0,2)

print('电脑的猜拳：%d' % computer)

if player == computer:
    print('平局')
elif computer==0:
    if player == 1:
        print('玩家赢')
    elif player == 2:
        print('电脑赢')
elif computer == 1:
    if player == 0:
        print('电脑赢')
    elif player == 2:
        print('玩家赢')
elif computer == 2:
    if player == 0:
        print('玩家赢')
    elif player == 1:
        print('电脑赢')
